<?php
//
//require ($_SERVER["DOCUMENT_ROOT"]."/Cofely2012/Cofely/class/defs/constants.php");
require_once FILE_CLASS_LAAG;

//Test
 
    
  
////$rechten_array = array(RIGHT_ADMIN_ADD, RIGHT_ADMIN_DEL_USER);
//
//$recht = new RechtBitfield();
//$recht->addRecht($rechten_array);
//                    $rechten_toevoegen = array(RIGHT_ADMIN_ADD, RIGHT_ADMIN_DEL_USER);
//                
//                    if($recht->heeftRechten($rechten_toevoegen)){
//                } else { 
//                    echo 'error';
//                }
    
    
?>

<html>
    <head>
    </head>
    
   
    <body>
        
<div id="wrapper">
<div id="content">          
<div id="header">
    <div id="logo"></div>
    <div id="headertext">Lagen beheren</div>
</div>
<div id="content2">
    <div id="contentbg">
        <div id="contentblock1">
            <div id="contentblock1text">  
                Lagen beheren
                <span style="margin-left: 320px;"> <a href ='index.php?page=toevoegen_laag'> Toevoegen </span>
                <img class ="lagen" img src="images/add.png" height='32px' width='32px'> </a>
       <?php
                   $laag = new Laag();
                      foreach ($laag->overzichtLaag() as $key => $array) {
                          echo "<form method='post' action='index.php?page=laag'>";
                              echo "<div id='overzichttable_lagen'>";
         echo "<table>";
          echo "<tr><input type='hidden' name='id' value='" .$array['id'] . "'></input>
                <td style ='width:80px';> <a href='index.php?page=laag'> <input class='button'type='submit' name='laag' value=' ".  $array['beschrijving'] . "' style= 'width:100px; background-color:white; '> </input>   </a> </td> 
                    <td> <input type='submit' name='verwijderen' value='Verwijderen'style= 'width:80px; background-color:red;'> </input> </td> 

                 </tr>";
          echo "</table>";
          echo "</div>";
     echo "</form>";
}
   
?>
               </div>      
        </div> 
    </div>        
</div>
</div>
</div>

